﻿Public Class WelcomeForm

    Private Sub WelcomeForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'WelcomeBrowser.Navigate(LocationofWelcome)

    End Sub

    Private Sub WelcomeBrowser_Navigated(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles WelcomeBrowser.Navigated
        If e.Url.ToString.Contains(".pdf") Then
            ButtonPanel.Visible = True
        Else
            ButtonPanel.Visible = False
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WelcomeBrowser.GoBack()
    End Sub
End Class